using Microsoft.EntityFrameworkCore;
using Project.Api.Entity;

namespace Project.Api.Database
{
    public class ProjectDb:DbContext
    {
        public DbSet<Minda> Minda{get;set;}
        public DbSet<Dormitory> Dormitory{get;set;}
        public DbSet<MindaDormitory> MindaDormitory{get;set;}

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        {
            options.UseSqlServer(@"server=.;database=Minda;uid=sa;pwd=123456;");
        }

    }
}